package com.haha.common.exception;

import javax.validation.Valid;

public enum BizCodeEnum {

    VALID_EXCEPTION(10000,"数据校验异常"),

    UNKNOW_EXCEPTION(10001,"系统未知异常"),
    PRODUCT_UP_EXCEPTION(11000,"商品上架错误异常");


    private String message;
    private int code;
    BizCodeEnum(int code,String message){
        this.message=message;
        this.code=code;
    }

    public String getMessage() {
        return message;
    }

    public int getCode() {
        return code;
    }
}
